#!/usr/bin/env sh

JAVA_OPTS="-XX:+UseContainerSupport -XX:InitialRAMPercentage=5.0 -XX:MaxRAMPercentage=85.0 -XX:+UseZGC -XX:+ZGenerational"

SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE:-"SIT"}

java $JAVA_OPTS -Dfile.encoding=UTF-8 -Dspring.profiles.active=$SPRING_PROFILES_ACTIVE -Djava.security.egd=file:/dev/./urandom -jar app.jar
